package com.yfp.operation.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yfp.common.core.annotation.Excel;
import com.yfp.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Description: 分账
 *
 * @CreateDate: 2024/6/7 15:53
 * @UpdateUser:
 * @UpdateDate: 2024/6/7 15:53
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@TableName(value = "position_sharing")
@Data
@Tag(name = "用户分成账单")
public class PositionSharing extends BaseEntity {
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "点位ID")
    private String positionId;

    @Schema(description = "创客用户ID")
    private Long userId;

    @Excel(name = "类型", readConverterExp = "1=特约商户,2=普通商户,3=个人,4=服务商")
    @Schema(description = "用户类型1特约商户2普通商户3个人4服务商")
    private Integer type;

    @Schema(description = "用户昵称")
    @Excel(name = "收款方名字")
    @TableField(exist = false)
    private String nickName;

    @Excel(name = "收款方账号")
    @Schema(description = "分账账号")
    private String accountNumber;

    @Excel(name = "结算周期")
    @Schema(description = "冻结天数")
    private Integer freezeDay;

    @Schema(description = "分成比例（百分比）")
    @Excel(name = "分账比例（%）")
    private BigDecimal proportion;

    @Schema(description = "设备id")
    @TableField(exist = false)
    private String machineId;

    @Schema(description = "创客收款商户号")
    private String proceedsAccount;

    @TableField(exist = false)
    private String orderSn;

}